package a12_SeqList.Stack;

/**
 * @Author quan
 * @Description 测试类
 * @Date 2023/3/22 10:45
 */
public class MyStackTest {
    public static void main(String[] args) {
        MyStack<Integer> stack = new MyStack<>();
        //入栈
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);
        stack.push(6);
        //出栈
        System.out.println(stack.pop());
        //查看此时的栈顶元素
        System.out.println(stack.peek());
        System.out.println(stack+"  ");
    }
}
